package org.SoccerTournament.model;

import java.io.Serializable;
import java.util.Collection;
import java.util.Date;

import javax.persistence.Column;

import org.SoccerTournament.commons.architecture.Caducable;

public abstract class Event implements Serializable,Caducable {
	

	private static final long serialVersionUID = 1L;
	
	/*Quartz*/
	private Date beginDate;
	
	private Date endDate;
	
	private Fixture theFixture;
	
	private Collection<Game> games;
	
	private Collection<Team> teams;

	private String name;
    
    
	@Column(name = "beginDate")
	public Date getBeginDate() {
		return beginDate;
	}
	
	@Column(name = "endDate")
	public Date getEndDate() {
		return endDate;
	}
	
	@Column(name = "name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	
	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Fixture getTheFixture() {
		return theFixture;
	}

	public void setTheFixture(Fixture theFixture) {
		this.theFixture = theFixture;
	}

	public Collection<Game> getGames() {
		return games;
	}

	public void setGames(Collection<Game> games) {
		this.games = games;
	}

	public Collection<Team> getTeams() {
		return teams;
	}
	
	public void setTeams(Collection<Team> teams) {
		this.teams = teams;
	}
}